package com.kevin.test.spring.ioc;

import java.util.Date;

import javax.annotation.Resource;

import org.springframework.beans.factory.annotation.Autowired;

public class User {

	private String id;
	private String userName;
	private String email;

	private Date date;
	
	
	@Resource
	private Group group1;
	
	@Autowired
	private Group group2;
	
	private Group group;

	User(Group group){
		this.group = group;
	}
	
	public void setUserName(String userName) {
		this.userName = userName;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getUserName() {
		return this.userName;
	}

	public String getEmail() {
		return this.email;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Group getGroup() {
		return group;
	}

	public void setGroup(Group group) {
		this.group = group;
	}
	
	public void setDate(Date date){
		this.date = date;
	}
	public Date getDate(){
		return date;
	}
}
